﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SchoolSet
{
    class Teacher :Human, ICommentable
    {
        private List<Discipline> disciplines;
        private List<string> comments;

        public Discipline[] Disciplines
        {
            get { return this.disciplines.ToArray(); }
        }

        public string[] Comments
        {
            get
            {
                return this.comments.ToArray();
            }
        }

        public Teacher(string name, Discipline[] disciplines)
            : base(name)
        {
            this.disciplines = new List<Discipline>(disciplines);
            this.comments = new List<string>();
        }

        public void AddComment(string comment)
        {
            this.comments.Add(comment);
        }
    }
}
